<?php
namespace app\Admin\model;

use think\Db;
use think\Model;

class Team extends Model
{
	public function get_Team()
	{
		return Db::name('team')->select();
	}

	public function get_TeamOne($id)
	{
		return Db::table('win_team')->where(array('id'=>$id))->find();
	}

	public function Add_Team($data)
	{
		return Db::table('win_team')->insert($data);
	}

	public function Edit_Team($data,$id)
	{
		return Db::table('win_team')->where(array('id'=>$id))->update($data);
	}

	public function Del_Team($id)
	{
		return Db::table('win_team')->where(array('id'=>$id))->delete();
	}
}